<?php
    class WinRate extends APIBase {
		
		public $tag = "WinRate";
		public $isLogin = false;
		
		public static $rate = array(0.165,0.165,0.165,0.165,0.165,0.165,0.00248,0.00248,0.00248,0.00248,0.000018,0.000018,0.000018,0.000018,0.000004,0.000004);
		
		public function before() {
			return true;
		}
		
		public function logic() {
			$data = array();
			$rate = self::$rate;
			if (!empty($rate)){
				$data['message'] = 1;
				foreach ($rate as $k=>$v){
					$data['rate'][] = $v;
				}
			}else{
				$data['message'] = 0;
			}
			$this->returnData($data);
		}
		
		public function after() {
			return true;
		}
    }
?>